package userwash

import (
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/schema"
)

const TableNameUserWash = "user_wash"

// UserWash 用户洗码
type UserWash struct {
	schema.Model
	UserId       int64   `gorm:"type:bigint;not null;comment:用户ID"`
	TypeName     string  `gorm:"type:varchar(20);not null;comment:返利率名称"`
	CategoryCode string  `gorm:"type:varchar(20);not null;comment:分类编码"`
	Rate         float64 `gorm:"type:decimal(20,4);not null;default:0;comment:返利率值(%)"`
	Bet          float64 `gorm:"type:decimal(20,4);not null;default:0;comment:投注增量"`
	Value        float64 `gorm:"type:decimal(20,4);not null;default:0;comment:洗码量值"`
}

func (*UserWash) TableName() string {
	return TableNameUserWash
}
